#include "../../../include/MyLogger.hpp"
#include <iostream>
#include <thread>
#include <chrono>
using namespace jpx;
int main(){
    MyLogger & logger = MyLogger::get_instance();
    if(!logger.initialize_logger("/home/jpx/Project/project2_server/conf/log4cpp.properties"))
    {
        cerr << "Failed to initialized logger!" << endl;
    }
    logger.log_info("info");
    logger.log_debug("debug");
    logger.log_warn("warn");
    logger.log_error("error");
    LOG_INFO("INFO");
    LOG_ERROR("ERROR");
    logger.log_user_register("zhangsan", "zhangsan@example.com", "root", "192.168.1.100");

    logger.log_user_login("zhangsan", "192.168.1.100", "mozila/5.0(windows NT 10.0;Win64;x64)");

    return 0;
}

